package system

import (
	"github.com/gin-gonic/gin"
	"mine-info-server/interfaces/facade"
)

type BasicRouter struct {
}

// InitBasicRouter 初始化 Basic 路由信息
func (s *BasicRouter) InitBasicRouter(Router *gin.RouterGroup) {
	basicRouterWithoutRecord := Router.Group("basic")
	server := facade.NewCommonServer()
	{
		basicRouterWithoutRecord.GET("isMsgAllRead", server.IsMsgAllRead) // 是否全部已读

		basicRouterWithoutRecord.GET("getMsgList", server.GetMsgList) // 获取消息列表

		basicRouterWithoutRecord.PUT("readMsg", server.ReadMsg) // 读取一条消息

	}
}
